#pragma once

#include "topcvt_unpack.hpp"

namespace topcvt
{
	class FixedUnpack : public UnpackImp
	{
	public:
		FixedUnpack(ByteBuffer& message)
			: UnpackImp(message)
		{}

		void checkElementCfgValid(AttributeableCfg& t) override;

		string unpackField(pugi::xml_node& node, FieldCfg& f, PolicyContext& ctx) override;

		void check(AttributeableCfg& t);
	};
};